package com.ndp.fb.mq.api.producer;


/**
 * Created by infi on 2015/1/22.
 */
public interface RocketMqProducerService {

        void sendMessage(String topic, String tags, String keys, Object message);

        /**
         * 发送延时消息
         *
         * @param topicName
         * @param tags
         * @param keys
         * @param message
         * @param delay     延时等级
         *                  <ul>
         *                  <li>0：不延时</li>
         *                  <li>1 - 18：1s 5s 10s 30s 1m 2m 3m 4m 5m 6m 7m 8m 9m 10m 20m 30m 1h 2h</li>
         *                  </ul>
         */
        void sendMessage(String topicName, String tags, String keys, Object message, int delay);

}
